package com.tyut.musicdreamer.framework.starter.convention.exception;

import com.tyut.musicdreamer.framework.starter.convention.respstatus.RespStatus;
import lombok.Getter;

/**
 * 业务异常基类
 */
@Getter
public class BusinessException extends AbstractException {

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(Integer code, String message) {
        super(code.toString(), message);
    }

    public BusinessException(RespStatus status) {
        super(status.code(), status.message());
    }

    public BusinessException(String code, String message) {
        super(code, message);
    }

    public BusinessException(String code, String message, Throwable cause) {
        super(code, message, cause);
    }

    public BusinessException(RespStatus status, Throwable cause) {
        super(status.code(), status.message(), cause);
    }
} 